# 设置 cmake 的最低版本
cmake_minimum_required(VERSION 3.21)
# 设置项目名称
project(linux_project_03_multi_thread C)
# 链接静态库
link_libraries(pthread)
# 设置 C 的版本
set(CMAKE_C_STANDARD 11)

# 设置 cmake 的子项目
add_subdirectory(demo-01-thread-create)
add_subdirectory(demo-02-thread-exit)
add_subdirectory(demo-03-thread-join)
add_subdirectory(demo-04-thread-detach)
add_subdirectory(demo-05-thread-cancel)
add_subdirectory(demo-06-mutex)
add_subdirectory(demo-07-read-write-mutex)
add_subdirectory(demo-08-cond)
add_subdirectory(demo-09-semaphore)
add_subdirectory(demo-10-producer-and-consumer)
